import request from '@/utils/request'

// 查询meidicineInfo列表
export function listMeidicineInfo(query) {
  return request({
    url: '/system/meidicineInfo/list',
    method: 'get',
    params: query
  })
}

// 查询meidicineInfo详细
export function getMeidicineInfo(id) {
  return request({
    url: '/system/meidicineInfo/' + id,
    method: 'get'
  })
}

// 新增meidicineInfo
export function addMeidicineInfo(data) {
  return request({
    url: '/system/meidicineInfo',
    method: 'post',
    data: data
  })
}

//获取声音地址
export function textToAudio(data) {
  return request({
    url: '/system/meidicineInfo/textToAudio',
    method: 'post',
    data: data
  })
}

// 修改meidicineInfo
export function updateMeidicineInfo(data) {
  return request({
    url: '/system/meidicineInfo',
    method: 'put',
    data: data
  })
}

// 删除meidicineInfo
export function delMeidicineInfo(id) {
  return request({
    url: '/system/meidicineInfo/' + id,
    method: 'delete'
  })
}


